<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/component/commonTagLib.jsp"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <title></title>
    <%@ include file="/WEB-INF/component/commonCSS.jsp" %>
    <!--[if lt IE 9]>
        <script src="lib/js/html5shiv.min.js"></script>
        <script src="lib/js/respond.min.js"></script>
    <![endif]-->
      <style type="text/css">
    	.text-left {
    		color:#949494;
    	}
    </style>
</head>
<body class="skin-blue-light sidebar-mini fixed skin-blue-light-frame">
    <section class="content-header">
        <h1>${list.complainType == 1?'投诉':'申诉'}详情</h1>
        <ol class="breadcrumb">
            <li><a href="${ctx}/home.jsp"><i class="fa fa-home"></i>首页</a></li>
            <li class="active"><a href="javascript:void(0)">申投诉管理</a></li>
            <li class="active"><a href="javascript:void(0)">${list.complainType == 1?'投诉':'申诉'}详情</a></li>
        </ol>
    </section>
    <section class="content">
        <div class=" box box-primary">
            <div class="box-header"></div>
            <!-- form start -->
            <form role="form" id ="form1" class="form-horizontal" action="saveOrEditDrugQuality" method="post">
                <div class="box-body">
                      <section class="content-header"><h1>机构信息</h1></section>
                   <div class="form-group form-group-xs">
                        <label class="col-sm-2 text-right">名称：</label>
                        <div class="col-sm-3 text-left">
                             <c:out value="${list.compName}"></c:out>
                        </div>
                    </div>
                      <div class="line"></div>
                 <section class="content-header">
         			<h1>${list.complainType == 1?'投诉':'申诉' }人信息</h1>
         		</section>
                <div class="form-group form-group-xs">
                        <label class="col-sm-2 text-right">${list.complainType == 1?'投诉':'申诉'}人真实姓名：</label>
                        <div class="col-sm-3 text-left">
                             <c:out value="${list.prosonName}"></c:out>
                        </div>
                         <label class="col-sm-2 text-right">${list.complainType == 1?'投诉':'申诉'}人性别：</label>
                        <div class="col-sm-2 text-left">
                             <c:out value="${list.sex}"></c:out>
                        </div>
                    </div>
                      <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label class="col-sm-2 text-right">${list.complainType == 1?'投诉':'申诉'}人联系电话：</label>
                        <div class="col-sm-3 text-left">
                             <c:out value="${list.phoneNum}"></c:out>
                        </div>
                         <label class="col-sm-2 text-right">${list.complainType == 1?'投诉':'申诉'}人邮箱：</label>
                        <div class="col-sm-2 text-left">
                             <c:out value="${list.email}"></c:out>
                        </div>
                    </div>
                      <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label class="col-sm-2 text-right">${list.complainType == 1?'投诉':'申诉'}人身份证号：</label>
                        <div class="col-sm-3 text-left">
                             <c:out value="${list.idNum}"></c:out>
                        </div>
                         <label class="col-sm-2 text-right">${list.complainType == 1?'投诉':'申诉'}人邮编：</label>
                        <div class="col-sm-2 text-left">
                             <c:out value="${list.zipcode}"></c:out>
                        </div>
                    </div>
                      <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label class="col-sm-2 text-right">${list.complainType == 1?'投诉':'申诉'}人通信地址：</label>
                        <div class="col-sm-8 text-left">
                             <c:out value="${list.address}"></c:out>
                        </div>
                    </div>
                     <div class="line"></div>
                      <section class="content-header">
         			<h1>${list.complainType == 1?'投诉':'申诉' }内容</h1>
         		</section>
                    <div class="form-group form-group-xs">
                        <label class="col-sm-2 text-right">${list.complainType == 1?'投诉':'申诉'}标题：</label>
                        <div class="col-sm-3 text-left">
                           <c:out value="${list.complainTitle}"></c:out>
                        </div>
                        <label class="col-sm-2 text-right">${list.complainType == 1?'投诉':'申诉'}时间：</label>
                        <div class="col-sm-2 text-left">
                             <c:out value="${list.complainDatetime}"></c:out>
                        </div>
                    </div>
                     <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label class="col-sm-2 text-right">${list.complainType == 1?'投诉':'申诉'}内容：</label>
                        <div class="col-sm-2 text-left">
                             <c:out value="${list.complainContent}"></c:out>
                        </div>
                    </div>
                       <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label class="col-sm-2 text-right">${list.complainType == 1?'投诉':'申诉'}备注：</label>
                        <div class="col-sm-3 text-left">
                             <c:out value="${list.complainRemark}"></c:out>
                        </div>
                    </div>
                     <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label class="col-sm-2 text-right">${list.complainType == 1?'投诉':'申诉'}项目：</label>
                         <c:forEach items="${listProj}" var="proj">
                        <div class="col-sm-2 text-left">
                             <c:out value="${proj.name}"></c:out>
                        </div>
                        </c:forEach>
                    </div>
                    
                     <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label class="col-sm-2 text-right">${list.complainType == 1?'投诉':'申诉'}医疗机构：</label>
                        <c:forEach items="${listHosp}" var="Hosp">
                        <div class="col-sm-2 text-left">
                             <c:out value="${Hosp.hospName}"></c:out>
                        </div>
                        </c:forEach>
                   </div>
                   
                     <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label class="col-sm-2 text-right">${list.complainType == 1?'投诉':'申诉'}配送企业：</label>
                       <c:forEach items="${listDelcomp}" var="delcomp">
                        <div class="col-sm-2 text-left">
                             <c:out value="${delcomp.compName}"></c:out>
                        </div>
                        </c:forEach>
                   </div>
                   
                    <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label class="col-sm-2 text-right">${list.complainType == 1?'投诉':'申诉'}生产企业：</label>
                       <c:forEach items="${listProdcomp}" var="prodcomp">
                        <div class="col-sm-2 text-left">
                             <c:out value="${prodcomp.compName}"></c:out>
                        </div>
                        </c:forEach>
                   </div>
                   
                   <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label class="col-sm-2 text-right">${list.complainType == 1?'投诉':'申诉'}药品：</label>
                        <c:forEach items="${listProd}" var="Prod">
                        <div class="col-sm-2 text-left">
                             <c:out value="${Prod.drugName}"></c:out>
                        </div>
                        </c:forEach>
                   </div>
                       <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label class="col-sm-2 text-right">处理人：</label>
                        <div class="col-sm-3 text-left">
                             <c:out value="${list.processUsername}"></c:out>
                        </div>
                        <label class="col-sm-2 text-right">处理时间：</label>
                        <div class="col-sm-2 text-left">
                             <c:out value="${list.processDatetime}"></c:out>
                        </div>
                        </div>
                              <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label class="col-sm-2 text-right">处理备注：</label>
                        <div class="col-sm-2 text-left">
                             <c:out value="${list.processRemark}"></c:out>
                        </div>
                    </div>
                      <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label class="col-sm-2 text-right">反馈人：</label>
                        <div class="col-sm-3 text-left">
                             <c:out value="${list.feedbackUsername}"></c:out>
                        </div>
                        <label class="col-sm-2 text-right">反馈时间：</label>
                        <div class="col-sm-2 text-left">
                             <c:out value="${list.feedbackDatetime}"></c:out>
                        </div>
                    </div>
                    <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label class="col-sm-2 text-right">反馈备注：</label>
                        <div class="col-sm-2 text-left">
                             <c:out value="${list.processFeedback}"></c:out>
                        </div>
                    </div>
                    <section class="content-header">
         			<h1>${list.complainType == 1?'投诉':'申诉' }相关证明</h1>
         			     <div class="form-group form-group-xs">
                        <label class="col-sm-2 text-right">${list.complainType == 1?'投诉':'申诉'}附件：</label>
                        <c:forEach items="${listAttachment}" var="attachment">
                        <div class="col-sm-2 text-left">
                        	<a href="javascript:showImg('<c:out value="${attachment.url}"></c:out>','<c:out value="${attachment.attrName}"></c:out>')"  ><c:out value="${attachment.attrName}"></c:out></a>
                        </div>
                        </c:forEach>
                   </div>
         		</section>
                </div>
                 <div class="box-footer text-center">
                    <button type="button" onclick="back();" class="btn btn-danger btn-sm">返 &nbsp; 回</button>
                </div>
            </form>
        </div>
    </section>
    <script src="${ctx}/lib/js/jquery.min.js" type="text/javascript"></script>
    <script src="${ctx}/lib/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="${ctx}/lib/plugins/slimScroll/jquery.slimscroll.min.js"></script>
    <script src="${ctx}/lib/js/app.js" type="text/javascript"></script>
    <script src="${ctx}/lib/plugins/datepicker/bootstrap-datepicker.js"></script>
    <script src="${ctx}/lib/js/HNApp.js"></script>
    <script src="${ctx}/lib/plugins/datepicker/bootstrap-datepicker.js"></script>
    <script src="${ctx}/lib/plugins/input-mask/jquery.inputmask.js"></script>
    <script src="${ctx}/lib/plugins/input-mask/jquery.inputmask.extensions.js"></script>
    <script type="text/javascript">
     function back(){
     	window.location.href="${ctx}/sysComplainPro/toSysComplainListJsp.html";
     }
     function showImg(imgPath, profileName) {
         var url = "${ctx}/acctInfo/toImg.html";
         $.HN.dialog.open({
             "id" : "showImg",
             "title" : profileName,
             "url" : url,
             "data" : {
                 "imgPath" : imgPath
             },
             "width" : 800,
             "height" : 400
         });
     }

    </script>
</body>
</html>
